package com.ming.javaweb.dao;

import com.ming.javaweb.beans.DTO.StudentDTO;
import com.ming.javaweb.beans.VO.StudentVO;
import com.ming.javaweb.beans.VO.TableVO;
import com.ming.javaweb.beans.entity.StudentDO;

import java.sql.SQLException;

public interface StudentDao {
    int addStudent(StudentDO studentDO) throws SQLException;

    /**
     * 分页查询学生
     * @param studentDTO
     * @return
     */
    TableVO<StudentVO> queryStudentByPage(StudentDTO studentDTO) throws SQLException;

    StudentVO getStudentById(int studentId) throws SQLException;

    int updateStudent(StudentDO studentDO) throws SQLException;

    int deleteById(int deleteId) throws SQLException;
}
